<div class="header">
    <div id="logo">
        <a href="/" class="custom-logo-link" rel="home" itemprop="url" title="{dreamer-cms:global name="title"/}">
            <img width="240" height="120" src="{dreamer-cms:template /}images/logo.png" class="custom-logo" alt="{dreamer-cms:global name="title"/}" itemprop="logo" />
        </a>
    </div>
    <nav>
        <ul class="dropdown">
        <li class="color1 current-menu-item"><a href="/"><span><i class="fa fa-home"></i> 首页</span></a></li>
        {dreamer-cms:categoryartlist length="8"}
        {dreamer-cms:if test="('true' eq [field:haschildren/])"}
        <li class="drop color[field:autoindex /]"><a href="#" title="[field:typenamecn /]"><i class="[field:ext01 /]"></i> [field:typenamecn /]</a>
        <ul class="sub_menu">
        	{dreamer-cms:channel}
        	<li><a href="[field:typeurl/]" title="[field:typenamecn /]">[field:typenamecn /]</a></li>
            {/dreamer-cms:channel}
        </ul>
        </li>
        {/dreamer-cms:if}
		{dreamer-cms:if test="('false' eq [field:haschildren/])"}
        <li class="color[field:autoindex /]"><a href="[field:typeurl/]" title="[field:typenamecn /]"><i class="[field:ext01 /]"></i> [field:typenamecn /]</a></li>
        {/dreamer-cms:if}
        {/dreamer-cms:categoryartlist}
        </ul>
    </nav>
    <div class="clear"></div>
</div>